::CODER BY yuanz POWERD BY iBAT
Setlocal enabledelayedexpansion
@echo off
mode con cols=80 lines=38
color 3F

set RegPath="HKEY_LOCAL_MACHINE\SOFTWARE\GitForWindows"
for /f "tokens=3" %%j in ('REG QUERY %RegPath% /V "InstallPath"') do set path==%path%;%%j\usr\bin

::set path==%path%;%%j\usr\bin

echo ==========================
echo set user name 
echo ==========================
git config --global user.name "autotest"


echo ==========================
echo set user email 
echo ==========================
git config --global user.email "autotestepoint@gmail.com"


echo ==========================
echo generate ssh 
echo ==========================
ssh-keygen -t rsa -C "autotestepoint@gmail.com"

pause

copy .\ssh\id_rsa %UserProfile%\.ssh\
copy .\ssh\id_rsa.pub %UserProfile%\.ssh\
copy .\ssh\known_hosts %UserProfile%\.ssh\

echo ==========================
echo test  connect
echo ==========================
ssh -T git@github.com

pause

